package com.amway.ll.utils;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyConnFactory {
	private static ApplicationContext ctx =new ClassPathXmlApplicationContext("spring-mybatis.xml");;
	private static final MyConnFactory conn = new MyConnFactory();
	
	
	private MyConnFactory(){
		
	}
	
	public static MyConnFactory getMyConn(){
		return conn;
	}
	
	public Object getConnection(String bean){
		return ctx.getBean(bean);
	}	

}